package com.magicmovie.api.service;

import com.magicmovie.api.service.impl.BannerServiceImpl;
import com.magicmovie.entity.Banner;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(name = "service",fallback = BannerServiceImpl.class)
public interface BannerService  {
    @RequestMapping(value = "/banner/list",method = RequestMethod.GET)
    List<Banner> findAll();

}
